<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>

	<body>

	</body>
	<script type="text/javascript">
		//		var str = 'aaaccccbbsssbbddddbbbbb';
		//		console.log(str.match(/b+/g))
		//		console.log(str.match(/b+/))

//		var str = '你好我是,狗蛋';
		
//		console.log(str.replace(/\,狗蛋/, '狗熊'));
		
		var str = /abc/g;
		var demo = "abcdddcsshhabcwe";
	
		console.log(str.exec(demo));
		console.log(str.test(demo));
	</script>

</html>